#include "IFileProxyImpl.h"
#include "MyFile.h"
///-----------------------------------------------------------------------------
IFileProxyImpl::IFileProxyImpl(const std::string& szFileName, const Time& time)
{
	m_pMyFile = new MyFile(szFileName, time);
}
///-----------------------------------------------------------------------------
IFileProxyImpl::~IFileProxyImpl(void)
{
	safe_delete(m_pMyFile);
}
///-----------------------------------------------------------------------------
ETYPE IFileProxyImpl::GetType(void)
{
	return m_pMyFile->GetType();
}
///-----------------------------------------------------------------------------
const char* IFileProxyImpl::GetName()
{
	return m_pMyFile->GetName();
}
///-----------------------------------------------------------------------------
void IFileProxyImpl::SetFileInfo(char* szFileContent, int nSize)
{
	m_pMyFile->SetFileInfo(szFileContent, nSize);
}
///-----------------------------------------------------------------------------
char* IFileProxyImpl::GetFileInfo(int& nSize) const
{
	return m_pMyFile->GetFileInfo(nSize);
}
///-----------------------------------------------------------------------------
void IFileProxyImpl::ShowFileInfo(void) const
{
	m_pMyFile->ShowFileInfo();
}
///-----------------------------------------------------------------------------